import request from '@/utils/request'

// 查询复卷明细（也是分切）列表
export function listRewinding(query) {
  return request({
    url: '/mes/fb/rewinding/list',
    method: 'get',
    params: query
  })
}

// 查询复卷明细（也是分切）详细
export function getRewinding(recordId) {
  return request({
    url: '/mes/fb/rewinding/' + recordId,
    method: 'get'
  })
}

// 新增复卷明细（也是分切）
export function addRewinding(data) {
  return request({
    url: '/mes/fb/rewinding',
    method: 'post',
    data: data
  })
}

// 修改复卷明细（也是分切）
export function updateRewinding(data) {
  return request({
    url: '/mes/fb/rewinding',
    method: 'put',
    data: data
  })
}

// 删除复卷明细（也是分切）
export function delRewinding(recordId) {
  return request({
    url: '/mes/fb/rewinding/' + recordId,
    method: 'delete'
  })
}
